package com.sinosoft.oms.service.impl;

import com.sinosoft.oms.dto.calpremrequest.PremRequestJsonDto;
import com.sinosoft.oms.dto.calpremrequest.RiskDto;
import com.sinosoft.oms.dto.calpremresponse.PremReponseJsonDto;
import com.sinosoft.oms.service.CalculatePremService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:Frankiegg
 * @date:2018/5/21
 * @project:bee
 * @Modified By:
 **/
@Service("DealCalculatePrem")
public class CalculatePremServiceImpl implements CalculatePremService{
    @Override
    public PremReponseJsonDto getPrem(PremRequestJsonDto premRequestJsonDto) {

        List<RiskDto> riskDtoList=premRequestJsonDto.getTranData().getInputData().getRisks().getRisk();
        for(RiskDto riskDto:riskDtoList){
            if ("0".equals(riskDto.getCalMode())){

            }else{

            }
        }
        return null;
    }

    public double getAmnt(){

        return 1.1;
    }
}
